package com.liy.redisson.entity;

import com.liy.redisson.utils.ExcelImport;
import lombok.Data;

/**
 * @author ly
 * @date 2022/11/15 17:54
 */

@Data
public class ExcelUser {

    //ExcelImport  自定义映射接口

    //获取表格行号
//    private int rowNum;

    //required = true是否为空  unique = true唯一性
    @ExcelImport(value = "姓名",required = true,unique = true)
    private String name;

    @ExcelImport("年龄")
    private Integer age;

    @ExcelImport(value = "性别",kv = "1-男;2-女")
    private Integer sex;

    @ExcelImport(value = "电话",maxLength = 11)
    private String tel;

    @ExcelImport("城市")
    private String city;

    @ExcelImport("头像")
    private String avatar;

    //获取错误的提示信息   比如：字段类型不正确，长度超过最大限制
//    private String rowTips;
//
//    //导入的原始数据
//    private String rowData;

}
